<?php
/** 
*
* @author Mike Buschmann - http://www.laguna-freunde.de/
*
* @package phpBB3
* @version $Id: impressum.php V0.1.8 2009-01-21 18:13:36Z Dinseprinz $
* @copyright (c) 2009 http://www.laguna-freunde.de/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);


// start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/lang_impressum');


// select data from database
$sql = 'SELECT name, value
    FROM ' . IMPRESSUM_TABLE . '
    WHERE aktiv = 1';
$result = $db->sql_query($sql);

while ($row = $db->sql_fetchrow($result))
{
    $template->assign_vars(array(
        'T' . $row['name']  => $row['value'],
    ));
} 
$db->sql_freeresult($result);

page_header($user->lang['IMPRESSUM_TITLE']);

$template->set_filenames(array(
	'body' => 'impressum_body.html')
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));

page_footer();

?>